package com.yeswater.multithread.chapter2.test2_1.test7;

/**
 * author : yeswater
 * date : 2023/10/19
 */

public class Service {

    synchronized public void service1() {
        System.out.println("service 1");
        service2();
    }

    synchronized public void service2() {
        System.out.println("service 2");
        service3();
    }

    synchronized public void service3() {
        System.out.println("service 3");
    }

}
